xUnit Patterns.com
Hosted by:
Unit testing expertise at your fingertips!

test-specific equality

Tests may have a different idea (than the SUT) of what constitutes equality of two objects. In fact, it may be different from one test to another. It is not advisable to modify the definition of equality within the system under test (SUT) to match the tests' expectations as this leads to Equality Pollution. Doing individual Equality Assertions on many attributes of an object is not the answer either as it can result in Obscure Test and Test Code Duplication. Instead, build one or more Custom Assertions that meets your tests' needs.



Page generated at Wed Feb 09 16:39:22 +1100 2011

Copyright © 2003-2008 Gerard Meszaros all rights reserved

All Categories
All "Glossary"
API
DFT
DTO
EDD
GUI
IDE
IOC
ORM
SUT
TDD
UML

AltStyle によって変換されたページ (->オリジナル) /